<template>
  <div>
    <el-button type="primary" @click="pass">审核通过</el-button>
  </div>
</template>

<script>
export default {
  name: "btn-a",
  props: {
    data: {
      type: Object
    }
  },
  methods: {
    pass() {
      this.$message({
        message: '恭喜你，这是一条成功消息',
        type: 'success'
      });
      this.$emit("fatherEvent", "query")
      console.log("传递参数：", this.data);
    }
  }
}
</script>

<style scoped>

</style>
